using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace UniversalAdminSystem.Infrastructure.DependencyInject;

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddAllService(this IServiceCollection services, IConfiguration configuration)
    {
        services.AddDomain();
        services.AddApplication(configuration);
        services.AddInfrastruture(configuration);
        return services;
    }
}